//
//  DatabaseHelper.h
//  ClinicalCollections
//
//  Created by janakiraman gopinath on 3/2/13.
//  Copyright (c) 2013 GOPI. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface DatabaseHelper : NSObject

typedef void (^completion_block_t)(UIManagedDocument *database);
typedef void (^generic_block_t)(void);
+ (NSString *) getDatabaseName;
+ (void) openDatabase:(NSString *) databaseName
               reopen:(BOOL) reopen
           usingBlock:(completion_block_t) block;
+ (void) updateDatabase:(NSString *) databaseName
             usingBlock:(generic_block_t) block;

+ (UIManagedDocument *) database;

@end
